import { RouteRecordRaw } from 'vue-router'
import { RouterTransition } from '@/components/transition/index'

/**
 * 报表管理路由
 */
const reportRoutes: Array<RouteRecordRaw> = [
  {
    path: '/report',
    name: 'Report',
    component: RouterTransition,
    redirect: '/report/directory',
    meta: {
      title: '报表管理'
    },
    children: [
      {
        path: 'directory',
        name: 'ReportDirectory',
        meta: {
          title: '目录管理'
        },
        component: () => import('@/views/report/directory/index.vue')
      },
      {
        path: 'reporting',
        name: 'ReportReporting',
        meta: {
          title: '报表上报'
        },
        component: () => import('@/views/report/reporting/index.vue')
      },
      {
        path: 'directory/add',
        name: 'ReportDirectoryAdd',
        meta: {
          title: '新增目录'
        },
        component: () => import('@/views/report/directory/Add.vue')
      },
      {
        path: 'directory/modify',
        name: 'ReportDirectoryModify',
        meta: {
          title: '修改目录'
        },
        component: () => import('@/views/report/directory/Add.vue')
      }
    ]
  }
]

export default reportRoutes
